﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MQ.Core.Cache
{
    /// <summary>
    /// redis database id
    /// </summary>
    public struct DbId
    {
        #region  0号库（基础库）
        /// <summary>
        /// 字典
        /// </summary>
        public static long Dictionary { get { return 0; } }
        /// <summary>
        /// 地区
        /// </summary>
        public static long Area { get { return 0; } }
        #endregion
        #region  1号库（组织架构及角色权限库）
        /// <summary>
        /// 公司
        /// </summary>
        public static long Company { get { return 1; } }
        /// <summary>
        /// 部门
        /// </summary>
        public static long Department { get { return 1; } }
        /// <summary>
        /// 角色
        /// </summary>
        public static long Role { get { return 1; } }
        /// <summary>
        /// 岗位
        /// </summary>
        public static long Post { get { return 1; } }
        /// <summary>
        /// 人员
        /// </summary>
        public static long User { get { return 1; } }
        #endregion
    }
}
